{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/channel/index')}">渠道管理</a></li>
{/*            <li class=""><a href="{:url('admin/user/add')&cc;">添加渠道</a></li>*/}
            <li class="layui-this">编辑渠道</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/channel/update')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-block">
                            <input type="text" name="username" value="{$user.username}" required  lay-verify="required" placeholder="请输入用户名" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-block">
                            <input type="text" name="nickname" value="{$user.nickname}" required  lay-verify="required" placeholder="请输入昵称" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">游戏平台</label>
                        <div class="layui-input-block">
                            <input type="text" name="platform" value="{$user.platform}" required  lay-verify="required" placeholder="请输入游戏平台" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">重置密码</label>
                        <div class="layui-input-block">
                            <input type="password" name="password" value="" placeholder="" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">渠道分成</label>
                        <div class="layui-input-block">
                            <input type="text" name="fee" value="{$user.fee}" required lay-verify="required" placeholder="请输入渠道分成" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电子邮箱</label>
                        <div class="layui-input-block">
                            <input type="text" name="email" value="{$user.email}" required lay-verify="required" placeholder="请输入电子邮箱" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">手机号</label>
                        <div class="layui-input-block">
                            <input type="text" name="mobile" value="{$user.mobile}" required lay-verify="required" placeholder="请输入手机号" class="layui-input">
                        </div>
                    </div>
                    {/*<div class="layui-form-item">
                        <label class="layui-form-label">余额</label>
                        <div class="layui-input-block">
                            <input type="text" name="balance" value="{$user.balance&cc;" placeholder="" class="layui-input">
                        </div>
                    </div>*/}
                     <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                           	<input type="radio" name="status" value="1" title="正常" {eq name="$user.status" value="1"}checked{/eq}>
      						<input type="radio" name="status" value="0" title="封禁" {eq name="$user.status" value="0"}checked{/eq}>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">支付方式</label>
                        <div class="layui-input-block">
                            <input type="radio" name="pay_where" value="0" title="系统支付" {eq name="$user.pay_where" value="0"}checked{/eq}>
                            <input type="radio" name="pay_where" value="1" title="渠道支付" {eq name="$user.pay_where" value="1"}checked{/eq}>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">开户行</label>
                        <div class="layui-input-block">
                            <input type="text" name="bank" value="{$user.bank}" required  lay-verify="required" placeholder="开户行" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">银行卡号</label>
                        <div class="layui-input-block">
                            <input type="text" name="bank_num" value="{$user.bank_num}" required  lay-verify="required" placeholder="银行卡号" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="address" value="{$user.address}" required  lay-verify="required" placeholder="地址" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="id" value="{$user.id}">
                            <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}